package com.yanqu.road.entity.player;

import com.yanqu.road.entity.DataObject;

public class UserDecoration extends DataObject {

	/**
	 * 玩家编号
	 */
	private long userId;
	/**
	 * 饰品编号
	 */
	private int decorationId;
	/**
	 * 到期时间
	 */
	private long endTime;

	private long modifyTime;        //变更时间

	public long getUserId() {
		return userId;
	}

	public void setUserId(long userId) {
		if (this.userId != userId) {
			this.userId = userId;
			setUpdateOption();
		}
	}

	public int getDecorationId() {
		return decorationId;
	}

	public void setDecorationId(int decorationId) {
		if(this.decorationId != decorationId) {
			this.decorationId = decorationId;
			setUpdateOption();
		}
	}

	public long getEndTime() {
		return endTime;
	}

	public void setEndTime(long endTime) {
		if(this.endTime != endTime) {
			this.endTime = endTime;
			setUpdateOption();
		}
	}

	public long getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(long modifyTime) {
		if(this.modifyTime != modifyTime) {
			this.modifyTime = modifyTime;
			setUpdateOption();
		}
	}

}
